{* $Id: pager.html 26897 2013-11-05 08:21:36Z wangjf $ *}
{*
{if isset($pager)}
<div class="row-fluid">
    <div class="span12">
        <div class="dataTables_info" id="DataTables_Table_1_info">
            总共 {$pager->getPages()} 页，{$pager->getTotal()}条记录
        </div>
    </div>
    <div class="span12 center">
        <div class="dataTables_paginate paging_bootstrap pagination">
            <ul>
                {if $pager->getPage() > 1}
                <li class="first "><a href="/{$pager->link($pager->begin())}">首页</a></li>
                <li class="prev "><a href="/{$pager->link($pager->prev())}">上一页</a></li>
                {else}
                <li class="first disabled"><a href="/{$pager->link($pager->begin())}">首页</a></li>
                <li class="prev disabled"><a href="/{$pager->link($pager->prev())}">上一页</a></li>
                {/if}
                {foreach $pager->getPagesArray(9) as $p}
                {if $pager->getPage() == $p}
                <li class="active"><a href="/{$pager->link($p)}">{$p}</a></li>
                {else}
                <li><a href="/{$pager->link($p)}">{$p}</a></li>
                {/if}
                {/foreach}
                {if $pager->getPage() < $pager->getPages()}
                <li class="next"><a href="/{$pager->link($pager->next())}">下一页</a></li>
                <li class="end"><a href="/{$pager->link($pager->end())}">末页 </a></li>
                {else}
                <li class="next disabled"><a href="/{$pager->link($pager->next())}">下一页</a></li>
                <li class="end disabled"><a href="/{$pager->link($pager->end())}">末页 </a></li>
                {/if}
            </ul>
        </div>
    </div>
</div>
{/if}
*}
{if isset($pager)}
  <div class="row-fluid page js_pageContent" style="margin-top:-10px;">
    {if $pager->getPage() > 1}
    <a href="{$pager->link($pager->begin())}">首页</a>
    <a href="{$pager->link($pager->prev())}">上一页</a>
    {/if}
    {foreach $pager->getPagesArray(9) as $p}
    {if $pager->getPage() == $p}
    <a href="{$pager->link($p)}" class="curr">{$p}</a>
    {else}
    <a href="{$pager->link($p)}">{$p}</a>
    {/if}
    {/foreach}
    {if $pager->getPage() < $pager->getPages()}
    <a href="{$pager->link($pager->next())}">下一页</a>
    <a href="{$pager->link($pager->end())}">末页 </a>
    {/if}
    <a href="javascript:void(0);">总共 {$pager->getPages()} 页，{$pager->getTotal()}条记录</a>
  </div>
{elseif isset($count)}
    <div class="row-fluid page js_pageContent" style="margin-top:-10px;">
    <a href="javascript:void(0);">总共 1 页，{$count}条记录</a>
    </div>
{/if}